<%@ page import="assignmentonepenguins.Customer" %>


<div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'username', 'error')} ">
    <label for="username">
        <g:message code="customer.username.label" default="Username" />

    </label>
    <g:textField name="username" pattern="${customerInstance.constraints.username.matches}" value="${customerInstance?.username}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="customer.email.label" default="Email" />
		
	</label>
	<g:textField name="email" pattern="${customerInstance.constraints.email.matches}" value="${customerInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'password', 'error')} ">
	<label for="password">
		<g:message code="customer.password.label" default="Password" />
		
	</label>
	<g:textField name="password" maxlength="8" value="${customerInstance?.password}"/>
</div>

